<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理员登录</title>
<load href="__PUBLIC__/css/base.css" />
<load href="__PUBLIC__/css/dpl-pkg.css" />
<load href="__PUBLIC__/js/jquery.js" />
<load href="__PUBLIC__/js/common.js" />
<script type="text/javascript">
    $(document).ready(function(){
        $('#login').ajaxSubmit(function(r){
            var message='<ul>',tiptype;
            message+='<li>'+r.info+'</li></ul>';
            if(r.status==1){
                tiptype='Success';
            }else{
               tiptype='Error';
            }
            //console.log(r.data);
            $.use('dialog', function(){
                $.alert(message,tiptype,'提示信息',function(){
                    if (tiptype=='Success')window.location = '__APP__/admin';
                });
            });
        }, 'json');
});
    function Verify(){
     //重载验证码
       var timenow = new Date().getTime();
        $('#verifyImg').attr("src",'__URL__/verify/'+timenow+'');
    }

</script>
<style type="text/css">
#login { width: 650px; height: 300px; margin: 10% auto 0 auto; background: url(__PUBLIC__/images/bg-line.gif) no-repeat 220px top; text-align:left; }
    #login .col1 { width:250px; padding-top:100px; margin:50px auto; float:left;  }
    #login .col1 p { color:#999999; margin:8px 0; padding:0; }
    #login .col2 { width:230px; margin:25px 0 0 35px; padding:15px 20px;; float:left; }
    #login .col2 dt { font-weight:bold; color:#666666; font-size:14px; }
    #login .col2 dd { margin:10px 0; padding:0; }
    #login .col2 select { width:205px; }
    #login .col2 label{ line-height:2; margin-left:1px; }
    #login .col2 .username,.password,.verify {border:1px #ccc solid;height:22px;width:200px;}
    #login .col2 .password{ width:200px; margin-left:1px; }
    #login .col2 .verify{ width:80px;margin-left:22px; }
    #login .col2 .remember{ margin:0 0 0 -3px; float:left; }
	#login .col2 .remember input{ vertical-align:middle; margin-right:3px; }
    #login .col2 .submit{ margin:0 19px 0 0; float:right; _margin-right:10px; _height:25px; }
</style>
</head>

<body>
<form id="login" name="login" method="post" action="__URL__/checkLogin">
    <div class="col1">
        <p></p>
        <p>运行环境：PHP 5.2+、MySQL 5.1+</p>
        <p><a href="/">返回首页</a></p>
    </div>
    <dl class="col2">
        <dt>管理员登录</dt>
        <dd><label for="username">用户名</label><br/><input class="username" type="text" name="username" id="username" tabindex="1" /></dd>
        <dd><label for="password">密码</label><br/><input class="password" type="password" name="password" id="password" tabindex="2" /></dd>
        <dd><label for="verify">验证码：<img id="verifyImg" SRC="__URL__/verify/" onclick="return Verify();" BORDER="0" alt="点击刷新验证码" style="cursor:pointer" align="absmiddle" title="点击刷新验证码"></label><input class="verify" type="text" name="verify" id="verify" tabindex="3" /></dd>
        <dd class="submit"><button class="button-silver" type="submit" tabindex="4">登录</button></dd>
    </dl>
</form>
</body>
</html>
